#pragma once
#include "..\InterfaceCar.h"
#include "InterFaceScreen.h"
#include "InterfaceRocket.h"

//工厂模式:抽象工厂模式:新增产品，无能为力，增加产品族;
class InterfaceFactory
{
public:
    //创建车
    virtual InterfaceCar *CreateCar() = 0;

    //创建显示器
    virtual InterfaceScreen* CreateScreen() = 0;

    //创建火箭
    virtual InterfaceRocket* CreateRocket() = 0;
};

